class User {
  late String avatarBig;
  late String avatarMiddle;
  late String avatarThumb;
  late String avatarUrl;
  late String email;
  late String employeeNo;
  late String enName;
  late String enterpriseEmail;
  late String mobile;
  late String name;
  late String openId;
  late String tenantKey;
  late String unionId;
  late String userId;

  User.fromJson(Map<String, dynamic> json) {
    avatarBig = json['avatar_big'] ?? '';
    avatarMiddle = json['avatar_middle'] ?? '';
    avatarThumb = json['avatar_thumb'] ?? '';
    avatarUrl = json['avatar_url'] ?? '';
    email = json['email'] ?? '';
    employeeNo = json['employee_no'] ?? '';
    enName = json['en_name'] ?? '';
    enterpriseEmail = json['enterprise_email'] ?? '';
    mobile = json['mobile'] ?? '';
    name = json['name'] ?? '';
    openId = json['open_id'] ?? '';
    tenantKey = json['tenant_key'] ?? '';
    unionId = json['union_id'] ?? '';
    userId = json['user_id'] ?? '';
  }
}

class UserInfo {
  late int code;
  late User data;
  late String msg;

  UserInfo.fromJson(Map<String, dynamic> json) {
    code = json['code'] ?? 0;
    data = User.fromJson(json['data'] ?? {});
    msg = json['msg'] ?? '';
  }
}
